package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * <P>描述</P>
 * User: tianhuaxing
 * Date: 2017/8/1
 * Time: 10:44
 */
@Component
@DisconfFile(targetDirPath = "disconf", filename = "baidu.properties")
public class BaiduProperties {

    private String creditApi;

    private String sourceName;

    private String verificationCode;

    private String eventType;

    private String sp_no;
    private String service_id;
    private String key;
    private String riskApiUrl;

    @DisconfFileItem(name = "baidu.creditApi", associateField = "creditApi")
    public String getCreditApi() {
        return creditApi;
    }

    public void setCreditApi(String creditApi) {
        this.creditApi = creditApi;
    }

    @DisconfFileItem(name = "baidu.sourceName", associateField = "sourceName")
    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    @DisconfFileItem(name = "baidu.verificationCode", associateField = "verificationCode")
    public String getVerificationCode() {
        return verificationCode;
    }

    public void setVerificationCode(String verificationCode) {
        this.verificationCode = verificationCode;
    }

    @DisconfFileItem(name = "baidu.eventType", associateField = "eventType")
    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    @DisconfFileItem(name = "baidu.sp_no", associateField = "sp_no")
    public String getSp_no() {
        return sp_no;
    }

    public void setSp_no(String sp_no) {
        this.sp_no = sp_no;
    }

    @DisconfFileItem(name = "baidu.service_id", associateField = "service_id")
    public String getService_id() {
        return service_id;
    }


    public void setService_id(String service_id) {
        this.service_id = service_id;
    }

    @DisconfFileItem(name = "baidu.key", associateField = "key")
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @DisconfFileItem(name = "baidu.riskApiUrl", associateField = "riskApiUrl")
    public String getRiskApiUrl() {
        return riskApiUrl;
    }

    public void setRiskApiUrl(String riskApiUrl) {
        this.riskApiUrl = riskApiUrl;
    }
}
